<?php
/**
 * StoryItemFixture
 *
 */
class StoryItemFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'length' => 10, 'key' => 'primary'),
		'story_id' => array('type' => 'integer', 'null' => false, 'default' => null),
		'priority' => array('type' => 'integer', 'null' => false, 'default' => null),
		'amount' => array('type' => 'integer', 'null' => false, 'default' => null),
		'adopted' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'comment' => 'Set when someone adopts an item'),
		'done' => array('type' => 'boolean', 'null' => false, 'default' => '0', 'comment' => 'set when amount gathered satisfies item'),
		'user_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'comment' => 'adopter'),
		'created' => array('type' => 'datetime', 'null' => false, 'default' => null),
		'modified' => array('type' => 'datetime', 'null' => false, 'default' => null),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1)
		),
		'tableParameters' => array('charset' => 'utf16', 'collate' => 'utf16_unicode_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'story_id' => 1,
			'priority' => 1,
			'amount' => 1,
			'adopted' => 1,
			'done' => 1,
			'user_id' => 1,
			'created' => '2013-10-26 14:23:50',
			'modified' => '2013-10-26 14:23:50'
		),
	);

}
